/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mundialfp.view.tables.ranking;

import java.awt.Container;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import mundialfp.view.tables.TableCustom3;

/**
 *
 * @author pferraz
 */
public class TableRankingManager {

    public void createRankingTable(TableCustom3 table, Container panel, JTextField txtPaisQuickSearch, JLabel loading, JLabel ball) {

        JScrollPane jScroll = new JScrollPane();
        jScroll.setViewportView(table);
        GroupLayout pnlLayout = new GroupLayout(panel);
        panel.setLayout(pnlLayout);
        createLayoutAndFontsPaisABM(pnlLayout, jScroll, table, txtPaisQuickSearch, loading, ball);

    }

    private void createLayoutAndFontsPaisABM(GroupLayout pnlLayout, JScrollPane jScroll, TableCustom3 table, JTextField txtPaisQuickSearch, JLabel loading, JLabel ball) {

         pnlLayout.setHorizontalGroup(
            pnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 583, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlLayout.setVerticalGroup(
            pnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 490, Short.MAX_VALUE)
                .addContainerGap())
        );

        table.setFont(new java.awt.Font("Trebuchet MS", 1, 15));
    }

}
